package com.seanLab.domain;
import com.seanLab.dto.SuggestArticleKeywordsDto;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;


/**
 * Created by ailly on 17-8-25.
 */
//@Document(collection="articleTest")
@Document(collection="article_10171458")
public class Article implements Serializable {
    @Id
    private String articleID;

    private String types;
    private String source;
    private String channel;
    private List<List<Category>> category;
    private List<SuggestArticleKeywordsDto> keywords;
    private List<String> tags;
    private String url;
    private String title;
    private String content;
    private String code;
    private List<String> imgID;

    private int extractImgFlag = 0;

    public Article() {
    }

    public Article(String articleID, String types, String source, String channel, List<List<Category>> category, List<SuggestArticleKeywordsDto> keywords, List<String> tags, String url, String title, String content, String code, List<String> imgID) {
        this.articleID = articleID;
        this.types = types;
        this.source = source;
        this.channel = channel;
        this.category = category;
        this.keywords = keywords;
        this.tags = tags;
        this.url = url;
        this.title = title;
        this.content = content;
        this.code = code;
        this.imgID = imgID;
    }

    public String getArticleID() {
        return articleID;
    }

    public void setArticleID(String articleID) {
        this.articleID = articleID;
    }

    public String getTypes() {
        return types;
    }

    public void setTypes(String types) {
        this.types = types;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public List<List<Category>> getCategory() {
        return category;
    }

    public void setCategory(List<List<Category>> category) {
        this.category = category;
    }

    public List<SuggestArticleKeywordsDto> getKeywords() {
        return keywords;
    }

    public void setKeywords(List<SuggestArticleKeywordsDto> keywords) {
        this.keywords = keywords;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<String> getImgID() {
        return imgID;
    }

    public void setImgID(List<String> imgID) {
        this.imgID = imgID;
    }

    public int getExtractImgFlag() {
        return extractImgFlag;
    }

    public void setExtractImgFlag(int extractImgFlag) {
        this.extractImgFlag = extractImgFlag;
    }
}
